/**
* Copyright (c) 2022 - present TinyVue Authors.
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

@import '../mixins/common.less';
@import '../custom.less';
@import './vars.less';

@float-bar-prefix-cls: ~'@{css-prefix}float-bar';

.@{float-bar-prefix-cls} {
  .inject-Floatbar-vars();

  position: fixed;
  top: 50%;
  right: 10px;
  z-index: 99999;
  box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.08);;
  border-radius: var(--tv-Floatbar-border-radius);
  overflow: hidden;
  background: var(--tv-Floatbar-bg-color);

  ul {
    li {
      display: block;
      color: var(--tv-Floatbar-list-text-color);
      font-size: var(--tv-Floatbar-font-size);
      min-width: 104px;
      min-height: 32px;
      line-height: 32px;
      text-align: center;
      margin: var(--tv-Floatbar-list-margin-x) 0;
      padding: 0 24px;

      &:hover {
        background: var(--tv-Floatbar-list-bg-color-hover)
      }

      a {
        width: 100%;
        height: 100%;
        color: var(--tv-Floatbar-list-text-color);
        cursor: pointer;
        outline: none;

        &:hover,
        &:focus {
          color: var(--tv-Floatbar-list-text-color-hover);
          text-decoration: none;
        }
      }
    }
  }
}
